package com.gxar.navigation.server.base.model.route.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.navigation.server.base.model.node.vo.LocationVO;
import com.gxar.navigation.server.base.model.route.vo.PathInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/9/18 09:33
 */
@Data
@ApiModel("线路规划响应")
public class DirectionResponse {

    @ApiModelProperty("起点坐标")
    @JSONField(name = "origin")
    @JsonProperty("origin")
    private LocationVO origin;

    @ApiModelProperty("终点坐标")
    @JSONField(name = "destination")
    @JsonProperty("destination")
    private LocationVO destination;

    @ApiModelProperty("起点到终点的距离（单位：米）")
    @JSONField(name = "distance")
    @JsonProperty("distance")
    private Double distance;

    @ApiModelProperty("路段方案集合")
    @JSONField(name = "paths")
    @JsonProperty("paths")
    private List<PathInfo> paths;

}
